package ar.com.vates.clasesyobjetos;

public class Punto {
	private int variable1;
	private int variable2;
	public int getVariable1() {
		return variable1;
	}
	public void setVariable1(int variable1) {
		this.variable1 = variable1;
	}
	public int getVariable2() {
		return variable2;
	}
	public void setVariable2(int variable2) {
		this.variable2 = variable2;
	}
	
	public Punto(){
		super();
		}
	public Punto(int x,int y){
		super();
		this.variable1=x;
		this.variable2=y;
	}
	public double calcularDistanciaDesde(Punto p){
		double dis;
		dis=Math.sqrt(Math.pow(p.variable1-this.variable1,2)+ Math.pow( p.variable2-this.variable2,2));
		return dis;
		
	}

}
